<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html>
<html>
<head>
<title>登出系统</title>
<%@include file="/WEB-INF/ibnms/common/jqgrid.jsp"%>
</head>
<body onload="redirectLoginPage()">
	<s:iterator value="LOGOUT_LINKS" id="link">
		<s:if test ='%{#link.PARA_ID != "FINAL_LOGOUT"}'>
			<iframe src="<s:property value="#link.PARA_VALUE"/>" style="VISIBILITY: hidden"></iframe>
		</s:if>
		<s:if test ='%{#link.PARA_ID == "FINAL_LOGOUT"}'>
			<input type="hidden" name="FINAL_LOGOUT" id="FINAL_LOGOUT" value='<s:property value="#link.PARA_VALUE"/>'/>
		</s:if>
	</s:iterator>
	<s:if test ='%{user != null}'>
		<input type="hidden" name="LOGIN_ID" id="LOGIN_ID" value='<s:property value="user.LOGIN_ID"/>'/>
		<input type="hidden" name="LOGIN_PASSWD" id="LOGIN_PASSWD" value='<s:property value="user.LOGIN_PASSWD"/>'/>
	</s:if>
</body>
<script type="text/javascript">
	function redirectLoginPage(){
		//var redirect = $('#FINAL_LOGOUT').val();
		var redirect = document.getElementById("FINAL_LOGOUT").value;
		//var LOGIN_ID = $('#LOGIN_ID').val();
		var LOGIN_ID = document.getElementById("LOGIN_ID").value;
		//var LOGIN_PASSWD = $('#LOGIN_PASSWD').val();
		var LOGIN_PASSWD = document.getElementById("LOGIN_PASSWD").value;

		if(LOGIN_ID&&LOGIN_ID){
			redirect = redirect + '&name='+LOGIN_ID+'&psw='+LOGIN_PASSWD;
		}
		window.location.href = redirect;
	}
</script>
<%-- 废止session--%>
<%
    session.invalidate();
%>

	
</html>